//
//  YTbirthdayView.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/25.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTbirthdayView.h"
@interface YTbirthdayView()
@property (weak, nonatomic) IBOutlet UIDatePicker *dateView;

@end
@implementation YTbirthdayView

- (IBAction)cancelButtonClick:(UIButton *)sender
{
    [self hideInController];
}


- (IBAction)comfirmButtonClick
{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    
    [formatter setDateFormat:@"yyyy-MM-dd 00:00:00"];
    
    NSAssert(self.confirmButtonClick != nil, @"confirmButtonClick 不能为nil");
    
    [self cancelButtonClick:nil];
    
    self.confirmButtonClick([formatter stringFromDate:self.dateView.date]);
}


@end
